package com.lz.kunkun.messageservice.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.lz.kunkun.messageservice.model.MessageSend;

/**
 * Hello world!
 *
 */
public interface MessageSendMapper
{
	
List<MessageSend> allMes( @Param("userId")Integer userId, @Param("status")Integer status, @Param("keyword")String keyword);

int sendMes( @Param("userId")Integer userId, @Param("phoneNumber")String phoneNumber,  @Param("content")String content,@Param("status")Integer status,@Param("why") String why,@Param("createTime") String createTime, @Param("level")int level);

int delMes( @Param("mesId")Integer mesId,  @Param("userId")Integer userId);

MessageSend getMes(@Param("userId")Integer userId,@Param("mesId") Integer mesId);

int updMes(@Param("mesId")Integer mesId, @Param("userId")Integer userId, 
		@Param("phoneNumber")String phoneNumber,@Param("content") String content, @Param("status")Integer status,
		@Param("why")String why,
		@Param("createTime")String createTime,@Param("level") Integer level);

void updMesStatus(@Param("mesId")Integer mesId, @Param("status")int status, @Param("why")String why);

List<MessageSend> getAllMes(@Param("status")int status);

}
